<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">用户列表</h3>
    </div>
    <div class="panel-body">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>编号</th>
                <th>用户名</th>
                <th>昵称</th>
                <th width="150px">操作</th>
            </tr>
            </thead>
            <tbody>
            {foreach $users as $vo}
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.username}</td>
                <td>{$vo.nickname}</td>
                <td>
                    <div class="btn-group">
                        <a href="/index/user/show?id={$vo.id}">
                            <button type="button" class="btn btn-success">查看</button>
                        </a>
                        <a href="/index/user/delete?id={$vo.id}">
                            <button type="button" class="btn btn-danger">删除</button>
                        </a>
                    </div>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
    </div>
</div>